/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fd;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Administrador
 */
@Entity
@Table(name = "fd_combos")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "FdCombos.findAll", query = "SELECT f FROM FdCombos f"),
    @NamedQuery(name = "FdCombos.findByCombo", query = "SELECT f FROM FdCombos f WHERE f.combo = :combo"),
    @NamedQuery(name = "FdCombos.findByNombre", query = "SELECT f FROM FdCombos f WHERE f.nombre = :nombre"),
    @NamedQuery(name = "FdCombos.findByCliente", query = "SELECT f FROM FdCombos f WHERE f.cliente = :cliente"),
    @NamedQuery(name = "FdCombos.findByPrecio", query = "SELECT f FROM FdCombos f WHERE f.precio = :precio"),
    @NamedQuery(name = "FdCombos.findByImagenChica", query = "SELECT f FROM FdCombos f WHERE f.imagenChica = :imagenChica"),
    @NamedQuery(name = "FdCombos.findByImagenGrande", query = "SELECT f FROM FdCombos f WHERE f.imagenGrande = :imagenGrande"),
    @NamedQuery(name = "FdCombos.findByEstado", query = "SELECT f FROM FdCombos f WHERE f.estado = :estado")})
public class FdCombos implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "combo")
    private Integer combo;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 20)
    @Column(name = "nombre")
    private String nombre;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 20)
    @Column(name = "cliente")
    private String cliente;
    @Basic(optional = false)
    @NotNull
    @Column(name = "precio")
    private double precio;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 20)
    @Column(name = "imagen_chica")
    private String imagenChica;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 20)
    @Column(name = "imagen_grande")
    private String imagenGrande;
    @Column(name = "estado")
    private Short estado;

    public FdCombos() {
    }

    public FdCombos(Integer combo) {
        this.combo = combo;
    }

    public FdCombos(Integer combo, String nombre, String cliente, double precio, String imagenChica, String imagenGrande) {
        this.combo = combo;
        this.nombre = nombre;
        this.cliente = cliente;
        this.precio = precio;
        this.imagenChica = imagenChica;
        this.imagenGrande = imagenGrande;
    }

    public Integer getCombo() {
        return combo;
    }

    public void setCombo(Integer combo) {
        this.combo = combo;
    }

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public String getCliente() {
        return cliente;
    }

    public void setCliente(String cliente) {
        this.cliente = cliente;
    }

    public double getPrecio() {
        return precio;
    }

    public void setPrecio(double precio) {
        this.precio = precio;
    }

    public String getImagenChica() {
        return imagenChica;
    }

    public void setImagenChica(String imagenChica) {
        this.imagenChica = imagenChica;
    }

    public String getImagenGrande() {
        return imagenGrande;
    }

    public void setImagenGrande(String imagenGrande) {
        this.imagenGrande = imagenGrande;
    }

    public Short getEstado() {
        return estado;
    }

    public void setEstado(Short estado) {
        this.estado = estado;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (combo != null ? combo.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FdCombos)) {
            return false;
        }
        FdCombos other = (FdCombos) object;
        if ((this.combo == null && other.combo != null) || (this.combo != null && !this.combo.equals(other.combo))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "fd.FdCombos[ combo=" + combo + " ]";
    }
    
}
